#ifndef TCPSERVER_H
#define TCPSERVER_H

#include <QWidget>
#include <QFile>
#include <QHostAddress>
#include <QMessageBox>

#include "opedb.h"

#include <QDebug>
#define qcout qDebug()<<"---------["<<__FILE__ <<":"<< __LINE__<<"]-->"

QT_BEGIN_NAMESPACE
namespace Ui { class TcpServer; }
QT_END_NAMESPACE

class TcpServer : public QWidget
{
    Q_OBJECT

public:
    TcpServer(QWidget *parent = nullptr);
    ~TcpServer();

     void loadConfig();//加载IP和端口号配置文件

private slots:

     //重置数据库数据
     void on_pbReset_clicked();
     //清空数据库数据
     void on_pbClear_clicked();

     void on_pbSelect_clicked();

private:
    Ui::TcpServer *ui;

    QString m_strIP;
    quint16 m_usPort;
};
#endif // TCPSERVER_H
